package main

import (
	"fmt"
	"go-sniffer/core"
)

// 核心的调用机制
// start core.Run()
// → core.(*Dispatch).Capture
// → core.(*Assembler).AssembleWithTimestamp
// → core.(*StreamPool).getConnection
// → core.(*ProtocolStreamFactory).New
func main() {
	var WelcomeMessage = `
   ____            ____        _  __  __           
  / ___| ___      / ___| _ __ (_)/ _|/ _| ___ _ __ 
 | |  _ / _ \ ____\___ \| '_ \| | |_| |_ / _ \ '__|
 | |_| | (_) |_____|__) | | | | |  _|  _|  __/ |   
  \____|\___/     |____/|_| |_|_|_| |_|  \___|_|   
	`
	fmt.Println(WelcomeMessage)

	core := core.New()
	core.Run()
}
